package com.smmisia.article.service;

import com.smmisia.article.entity.Message;
import com.smmisia.article.request.MessageRequest;
import com.smmisia.article.response.socket.GroupMessageResponse;
import com.smmisia.article.response.socket.MessageResponse;
import com.smmisia.common.Result.Result;
import com.smmisia.common.request.feign.request.FeignMessageGroupRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;


public interface MessageService extends IService<Message> {

    Result send(@Valid MessageRequest request);

    Result<MessageResponse> getMessage(@NotEmpty(message = "用户id不能为空") Integer sendId);

    Result sendGroup(@Valid FeignMessageGroupRequest request);

    Result<GroupMessageResponse> getGroupMessage(@NotEmpty(message = "群组id不能为空") Integer groupId);
}
